import org.rsbot.script.wrappers.RSNPC;

class VoluntaryThieve$Actions$5 extends VoluntaryThieve.Action
{
  RSNPC trainer;

  VoluntaryThieve.Action.State perform()
  {
    if (this.trainer == null) {
      if ((this.val$args.length != 1) || (!(this.val$args[0] instanceof RSNPC)))
        throw new IllegalArgumentException();
      this.trainer = ((RSNPC)this.val$args[0]);
    }

    return this.trainer.doAction("Lure") ? VoluntaryThieve.Action.State.COMPLETED : VoluntaryThieve.Action.State.PROGRESSING;
  }

  VoluntaryThieve.Action.State finish()
  {
    return VoluntaryThieve.Actions.Methods.access$3700(VoluntaryThieve.Actions.access$1700(this.this$1)) ? VoluntaryThieve.Action.State.COMPLETED : VoluntaryThieve.Action.State.PROGRESSING;
  }
}